package com.lzh.others.callBackTask;

public class AddMethod implements CallbackTask<Integer> {
    @Override
    public Integer execute() {
        int i = 0;
        for (int j = 0; j < 5000; j++) {
            i++;
            System.out.println("线程执行中... ,i=" +i);
        }
        return i;
    }

    @Override
    public void onSuccess(Integer integer) {
    }

    @Override
    public void onFailure(Throwable e) {
    }
}
